#ifndef INTFLASH_HPP
#define INTFLASH_HPP
#include "flash.hpp"
#include "semaphore.hpp"

#define INTERFLASH_SECTOR_SIZE		0x2000 
///>>内部flash实列
namespace device
{
	class intflash:public flash
	{
		private:
			systemos::semaphore *mSemaphore;
		public:
			intflash(void);
			virtual ~intflash(void);
			virtual bool Read(uint32_t uiAddr, uint8_t *ucData, uint16_t usLen);
			virtual bool Write(uint32_t uiAddr, uint8_t *ucData, uint16_t usLen);
			virtual bool Erase(uint32_t uiAddr);
			virtual uint32_t GetSectorSize(void);
	};
}

#endif
